package com.edu.html.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.edu.html.dao.PermissionDao;
import com.edu.html.pojo.Menu;
import com.edu.html.pojo.Permission;
import com.edu.html.service.PermissionService;

@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {
	
	@Autowired
	private PermissionDao permissionDao;

	@Override
	public Permission queryMenus(String roleId) {
		return permissionDao.queryMenus(roleId);
	}

	@Override
	public List<Menu> selectMenuByIds(String menuIds) {
		return permissionDao.selectMenuByIds(menuIds);
	}

}
